package org.come.control;

import java.util.List;

import org.come.Frame.RechargeVIPJframe;
import org.come.Frame.TaobaoCourtMainJframe;
import org.come.action.FromServerAction;
import org.come.bean.PayvipBean;
import org.come.until.GsonUtil;

import com.google.gson.reflect.TypeToken;

/**
 * VIP列表
 * 
 * @author Administrator
 * 
 */
public class GetvipgradepackControl implements FromServerAction
{

	@Override
	public void controlMessFromServer(String mes, String type) {

		List<PayvipBean> payvipBeanList = GsonUtil.getGsonUtil().getgson().fromJson(mes, new TypeToken<List<PayvipBean>>() {
		}.getType());
		TaobaoCourtMainJframe.getTaobaoCourtJframe().getTaobaoCourtMainJpanel().getTaobaoCourtCardJpanel().getVipShopJpanel().showGoodsList(payvipBeanList);

		if(RechargeVIPJframe.getRechargeVIPJpanel() != null){

			RechargeVIPJframe.getRechargeVIPJpanel().showGoodsList(payvipBeanList);
		}
	}

}
//{
//
//	@Override
//	public void controlMessFromServer(String mes, String type) {
//
//		List<PayvipBean> payvipBeanList = GsonUtil.getGsonUtil().getgson().fromJson(mes, new TypeToken<List<PayvipBean>>() {
//		}.getType());
//		TaobaoCourtMainJframe.getTaobaoCourtJframe().getTaobaoCourtMainJpanel().getTaobaoCourtCardJpanel().getVipShopJpanel().showGoodsList(payvipBeanList);
//		RechargeVIPJframe.getRechargeVIPJpanel().showGoodsList(payvipBeanList);
//	}
//
//}
